package com.xxh.springclouddemo.consumer.controller;


import com.xxh.springclouddemo.consumer.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author xxh
 * @Date 2024/4/14 15:35
 */
@RequestMapping("/consumer")
@RestController
public class ConsumerController {

    @Autowired
    private ConsumerService consumerService;

    @RequestMapping("/getStudent")
    public List getStudent(){


        return consumerService.getStudent();


    }


}
